const express = require('express')
const app = express()
const cors = require('cors')
const router = require('./router')
    // app.use(cors())


app.use(express.urlencoded({ extended: false }))
app.use(express.static('public'))

app.use(router)

app.listen(80, function() {
    console.log('服务器启动');
})